"""
liaoyuru
"""
class Person:
    city = '北京'
    '''定义构造方法，初始化实例变量name、age、hobby和app,
        分别表示姓名、年龄、爱好和常用的APP'''
    def __init__(self,name,age,hobby,app):
        self.name = name
        self.age = age
        self.hobby = hobby
        self.app = app
    @staticmethod
    def printMenu():
        print('-------个人信息-------')
    def printInfo(self):
        print('居住城市:',Person.city)
        print('姓名:',self.name)
        print('年龄:',self.age)
        print('爱好:',self.hobby)
        print('常用的APP:',self.app)
person1 = Person('凌蓝',30,'打羽毛球','淘宝、爱奇艺')
person1.printMenu()
person1.printInfo()
Person.city = '上海'
person2 = Person('唐果',25,'跑步','淘宝、微博')
person2.printMenu()
person2.printInfo()